package com.yfs.cloud.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yfs.cloud.entity.Role;
import com.yfs.cloud.entity.UserRole;
import com.yfs.cloud.mapper.RoleMapper;
import com.yfs.cloud.service.UserRoleService;

/**
* @Company: 影法師工作室
* @Description: 用户角色服务 
* @author 影法師  
* @date 2020年8月25日 下午3:21:01 
* @version V1.0
 */
@Service
public class UserRoleServiceImpl extends BaseServiceImpl<UserRole> implements UserRoleService {
	@Autowired
	private RoleMapper roleMapper;

	@Override
	public List<Role> findRolesByUserId(Long id) {
		return roleMapper.selectRolesByUserId(id);
	}
}
